package com.hua.designpattern.j2eepattern.frontcontroller;

public class Dispatcher {

	public void dispatch(String request) {
		if ("VIEW2".equalsIgnoreCase(request)) {
			View2 view = new View2();
			view.showPage();
		} else {
			View1 view = new View1();
			view.displayPage();
		}
	}

}
